import request from "@/utils/request";
import type { responseCategory } from "./type/type";
//平台属性管理接口
//获取一级select
export const getCategoryOne = () =>
  request.get<any, responseCategory>("/admin/product/getCategory1");
//获取二级select
export const getCategoryTwo = (category1Id: number) =>
  request.get<any, responseCategory>(
    `/admin/product/getCategory2/${category1Id}`
  );
//获取三级select
export const getCategoryThree = (category2Id: number) =>
  request.get<any, responseCategory>(
    `/admin/product/getCategory3/${category2Id}`
  );
